﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChatForum.Domain
{
    public class InvalidUserException : Exception
    {
        public InvalidUserException()
            : base("Invalid User.")
        {
        }
    }
    public class InvalidPasswordException : Exception
    {
        public InvalidPasswordException()
            : base("Invalid Password. Please try again")
        {
        }
    }
	public class BlockedUserException : Exception
	{
		public BlockedUserException()
			: base("User is blocked. Contact administrator.")
		{
		}
	}
    public class DuplicateUserIdException : Exception
    {
        public DuplicateUserIdException()
            : base("User ID already exist.")
        {
        }
    }
    public class DuplicatePrimaryEmailException : Exception
    {
        public DuplicatePrimaryEmailException()
            : base("Primar Email Id already registered")
        {
        }
    }
    public class DuplicateCategoryException : Exception
    {
        public DuplicateCategoryException()
            : base("Duplicate Category Exists")
        {
        }
    }
    public class InvalidCategoryException : Exception
    {
        public InvalidCategoryException()
            : base("Given Category doesn't exist")
        {
        }
    }
    public class DuplicatePostException : Exception
    {
        public DuplicatePostException()
            : base("The Post titlel already exist. Try something else")
        {
        }
    }
}
